﻿using ManageSystem.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ManageSystem.IRepository
{
    public interface IProjectRepository:IBaseRepository<Project>
    {

        /// <summary>
        /// 根据username筛选项目
        /// </summary>
        Task<List<Project>> QueryProjectsByUserName(string username);

        /// <summary>
        /// 判断是否存在名字重复的项目
        /// </summary>
        Task<bool> isProjectNameRepated(string projectName);
    }
}
